 var post={}; 

 $('#simpan').linkbutton({  
    iconCls: 'disk'  
 });
 
 $('#tutup').linkbutton({  
    iconCls: 'cross'  
 });
 $('#tutup').live('click',function(){
 	mywindow_close();
 });
 
  $('#simpan').bind('click',function(){
  		//loadingna();
 		
		jQuery('#form_na').form('submit',{
            url:host+'backend/simpan/tbl_toko_user',
            onSubmit: function(){
                  return $('#form_na').form('validate');
            },
            success:function(r){
				var r=eval('(' + r + ')');
				//console.log(r.msg)
				if(r.msg==1){
					cek_url('user_toko');
					
					mywindow_close();
					
					$.messager.alert("Simpan Data","Data Sudah Tersimpan",'info');
					
				}
				else{
					mywindow_close();
					$.messager.alert("Simpan Data","Data Gagal Tersimpan",'error');
					//winLoadingClose();
					
				}
				 
            },
			
			error:function(data){
				 $.messager.alert("Simpan Data","Data Gagal Tersimpan",'error');
				// winLoadingClose();
				
            }
		});
  });